%---------------------------------------------------------------------------%
%-                                                                         -%
%-                           LaTeX Template                                -%
%-                                                                         -%
%---------------------------------------------------------------------------%
%- Copyright (C) Huangrui Mo <huangrui.mo@gmail.com> 
%- This is free software: you can redistribute it and/or modify it
%- under the terms of the GNU General Public License as published by
%- the Free Software Foundation, either version 3 of the License, or
%- (at your option) any later version.
%---------------------------------------------------------------------------%
%->> Document class declaration
%---------------------------------------------------------------------------%
\documentclass[oneside]{Style/gsuplthesis}%
%- Multiple optional arguments:
%- [<oneside|twoside|print>]% oneside eprint, twoside eprint, or paper print
%- [fontset=<adobe|none|...>]% specify font set instead of automatic detection
%- [scheme=plain]% thesis writing of international students
%- [draftversion]% show draft version information
%- [standard options for ctex book class: draft|paper size|font size|...]%
%---------------------------------------------------------------------------%
%->> Document settings
%---------------------------------------------------------------------------%
\usepackage{geometry}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{makecell}
\usepackage[super,list]{Style/artratex}% 文本: Jones 上标[1]; 括号: 上标[1]
\usepackage{pdfpages}
\usepackage{Style/artracom}% user defined commands
\usepackage{etoolbox}
\usepackage{caption}

%- usage: \usepackage[option1,option2,...,optionN]{artratex}
%- Multiple optional arguments:
%- [bibtex|biber]% set bibliography processor and package
%- [<numbers|super|authoryear|alpha>]% set citation and reference style
%- <numbers>: textual: Jones [1]; parenthetical: [1]
%- <super>: textual: Jones superscript [1]; parenthetical: superscript [1]
%- <authoryear>: textual: Jones (1995); parenthetical: (Jones, 1995)
%- <alpha>: textual: not available; parenthetical: [Jon95]
%- [geometry]% reconfigure page layout via geometry package
%- [lscape]% provide landscape layout environment
%- [xhf]% disable header and footer via fancyhdr package
%- [color]% provide color support via xcolor package
%- [background]% enable page background
%- [tikz]% provide complex diagrams via tikz package
%- [table]% provide complex tables via ctable package
%- [list]% provide enhanced list environments for algorithm and coding
%- [math]% enable some extra math packages
%- [xlink]% disable link colors

%---------------------------------------------------------------------------%
%->> Document inclusion
%---------------------------------------------------------------------------%
%\includeonly{Tex/Chap_1,...,Tex/Chap_N}% selected files compilation
%---------------------------------------------------------------------------%
%->> Document content
%---------------------------------------------------------------------------%
%-
%-> Titlepage information
%-
\input{Tex/Frontinfo}%
\geometry{left=32mm,right=21mm,top=24mm,bottom=22mm,headheight=0pt,headsep=0pt,footskip=10.4mm}

\setlength{\parskip}{0pt}
\setlength{\parindent}{2cc}

\DeclareCaptionFont{myit}{\zihao{5}\kaishu}
\captionsetup{
    labelsep=quad,
    font=myit
}

%- 次级列表序号使用阿拉伯数字
\renewcommand{\labelenumii}{(\arabic{enumii})}
\begin{document}
%-
%-> Frontmatter: title page, abstract, content list, symbol list, preface
%-
\frontmatter% initialize the environment
\nocite{*}

\input{Tex/Frontmatter}% 正文前内容

\newpage
\pagenumbering{Roman}% 目录页码符号使用罗马数字
{% content list region
\tableofcontents% content catalog
% \intobmk*{\cleardoublepage}{\listfigurename}% add link to bookmark
% \listoffigures% figure catalog
% \intobmk*{\cleardoublepage}{\listtablename}% add link to bookmark
% \listoftables% table catalog
}
% \input{Tex/Prematter}% symbol list, preface content 符号列表，你政不需要，注释起
%-
%-> Mainmatter
%-
\mainmatter% initialize the environment
\setlength{\baselineskip}{20pt}
\AtBeginEnvironment{tabular}{\zihao{5}\upshape}
\AtBeginEnvironment{tabular*}{\zihao{5}\upshape}
\makeatletter
% \renewcommand{\chapter}{%
%   \if@openright\cleardoublepage\else\clearpage\fi
%   \thispagestyle{plain}%
%   \global\@topnum\z@
%   \@afterindentfalse
%   \secdef\@chapter\@schapter
% }

\renewcommand\@biblabel[1]{[#1]\hfill}
\makeatother
\input{Tex/Mainmatter}% main content
%-
%-> Appendix
%-
% \cleardoublepage%
%-
%-> Backmatter: bibliography, glossary, index
%-
\backmatter% initialize the environment

\intotoc*{\cleardoublepage}{\bibname}% add link to toc
\vspace*{40pt}
% Add these commands before \artxifstreq
\renewcommand{\bibname}{\zihao{3}\bfseries\centering 参考文献}

% For English text in references

\artxifstreq{\artxbib}{bibtex}{% enable bibtex
    \bibliography{Biblio/ref}% bibliography
}{%
    \printbibliography% bibliography
}
\newpage
\input{Tex/Backmatter}% other information
% \artxifstreq{\artxbib}{bibtex}{% enable bibtex
%     \bibliography{Biblio/ref}% bibliography
% }{%
%     \printbibliography% bibliography
% }
% \appendix% initialize the environment
% \setcounter{table}{0}% 将表格编号重置为 0
% \renewcommand{\thetable}{8.\arabic{table}}% 表格编号格式
% \input{Tex/AppendixB}% appendix content
\end{document}
%---------------------------------------------------------------------------%

